﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 小红书
    /// </summary>
    [Table("sys_RedNews"), Comment("小红书")]
    public class RedNews : EfEntity
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Comment("标题"),MaxLength(500)]
        public string Title { get; set; }
        /// <summary>
        /// 主页图
        /// </summary>
        [Comment("主页图"), MaxLength(2000)]
        public string CoverAddress { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        [Comment("图片地址"), MaxLength(2000)]
        public string PictureAddress { get; set; }
        /// <summary>
        /// 视频地址
        /// </summary>
        [Comment("视频地址"), MaxLength(2000)]
        public string VideoAddress { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        [Comment("用户ID")]
        public long User { get; set; }
        /// <summary>
        /// 分组ID
        /// </summary>
        [Comment("分组ID")]
        public long Group { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Comment("内容")]
        public string? Content { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 0：待审核
        /// 1：已通过
        /// 2：未通过
        /// </summary>
        [Comment("状态 0：待审核,1：已通过,2：未通过"), MaxLength(500)]
        public int State { get; set; }
        /// <summary>
        /// 审核备注
        /// </summary>
        [Comment("备注"), MaxLength(500)]
        public string? Remark { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        [Comment("审核时间")]
        public DateTime AuditDate { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        [Comment("审核人")]
        public long? AuditOperator { get; set; }
    }
}
